package cn.iocoder.yudao.module.crossborder.compliance.enums;

import cn.iocoder.yudao.framework.common.exception.ErrorCode;

/**
 * CrossBorder Compliance 错误码枚举类
 *
 * crossborder compliance 系统，使用 1-020-000-000 段
 */
public interface ErrorCodeConstants {

    // ========== 合规检查相关 1-020-001-000 ============
    ErrorCode COMPLIANCE_CHECK_NOT_EXISTS = new ErrorCode(1_020_001_000, "合规检查记录不存在");
    ErrorCode COMPLIANCE_CHECK_ALREADY_EXISTS = new ErrorCode(1_020_001_001, "合规检查记录已存在");
    ErrorCode COMPLIANCE_CHECK_STATUS_INVALID = new ErrorCode(1_020_001_002, "合规检查状态无效");
    ErrorCode COMPLIANCE_CHECK_FAILED = new ErrorCode(1_020_001_003, "合规检查失败");

    // ========== 法规管理相关 1-020-002-000 ============
    ErrorCode REGULATION_NOT_EXISTS = new ErrorCode(1_020_002_000, "法规不存在");
    ErrorCode REGULATION_ALREADY_EXISTS = new ErrorCode(1_020_002_001, "法规已存在");
    ErrorCode REGULATION_STATUS_INVALID = new ErrorCode(1_020_002_002, "法规状态无效");
    ErrorCode REGULATION_COUNTRY_INVALID = new ErrorCode(1_020_002_003, "法规适用国家无效");

    // ========== 证书管理相关 1-020-003-000 ============
    ErrorCode CERTIFICATE_NOT_EXISTS = new ErrorCode(1_020_003_000, "证书不存在");
    ErrorCode CERTIFICATE_EXPIRED = new ErrorCode(1_020_003_001, "证书已过期");
    ErrorCode CERTIFICATE_INVALID = new ErrorCode(1_020_003_002, "证书无效");
    ErrorCode CERTIFICATE_TYPE_INVALID = new ErrorCode(1_020_003_003, "证书类型无效");

    // ========== 审计日志相关 1-020-004-000 ============
    ErrorCode AUDIT_LOG_NOT_EXISTS = new ErrorCode(1_020_004_000, "审计日志不存在");
    ErrorCode AUDIT_LOG_ACCESS_DENIED = new ErrorCode(1_020_004_001, "审计日志访问被拒绝");

}
